<?php

/**
 *  
 *
 * @copyright (c) 2012 University of Geneva
 * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
 * @author Laurent Opprecht laurent@opprecht.info
 */
defined('MOODLE_INTERNAL') || die;

require_once(dirname(__FILE__) . '/backup_emedia_stepslib.php');

/**
 * eMedia backup task that provides all the settings and steps to perform one
 * complete backup of the activity
 */
class backup_emedia_activity_task extends backup_activity_task
{

    /**
     * Define (add) particular settings this activity can have
     */
    protected function define_my_settings()
    {
        
    }

    /**
     * Define (add) particular steps this activity can have
     */
    protected function define_my_steps()
    {
        $this->add_step(new backup_emedia_activity_structure_step('emedia_structure', 'emedia.xml'));
    }

    /**
     * All links should be external
     */
    static public function encode_content_links($content)
    {
        return $content;
    }

}
